package com.hz.filemanager.ui.file;

import com.hz.filemanager.model.file.FileManager;
import com.hz.filemanager.model.file.ImageBean;
import com.hz.filemanager.model.file.ImgFolderBean;
import com.hz.filemanager.utils.Utils;

import java.util.List;

public class ImageDataTest {

    private static FileManager fileManager;

    public static void main(String[] args) {

        fileManager = FileManager.getInstance(Utils.getContext());

        List<ImgFolderBean> imageFolderList = fileManager.getImageFolders();

        long startTime = System.currentTimeMillis();
        System.out.println("group size = " + imageFolderList.size());
        for(ImgFolderBean imgFolderBean : imageFolderList){
            List<ImageBean> imageBeans = fileManager.getImgListByDir(imgFolderBean.getDir());
            imgFolderBean.setImageBeans(imageBeans);
            System.out.println("child size = " + imageBeans.size());
        }

        System.out.println("group size ============== " + imageFolderList.size());
        System.out.println("end time = " + (System.currentTimeMillis() - startTime));




    }
}
